package com.wshoto.ocean.feign.client.fallback.impl;

import com.wshoto.framework.common.base.*;
import com.wshoto.framework.common.enumeration.*;
import com.wshoto.ocean.feign.client.fallback.*;
import com.wshoto.ocean.feign.common.dto.*;
import com.wshoto.ocean.feign.common.request.*;
import lombok.extern.slf4j.*;

/**
 * 提供默认AppServiceFeignFallBack 调用者如有需要可自行将该实现类注意容器中
 * 也可继承AbstractAppServiceFeignFallBack抽象接口覆写该实现，注入自定义的FallBack实例
 * 默认实现与自定义实现只能注入其一，不能都注入
 * 默认实现命名规范遵循大驼峰式命名，命名规范为Default+feign接口名+FallBack
 *
 * @author Lee
 */
@Slf4j
public class DefaultAppServiceFeignFallBack extends AbstractAppServiceFeignFallBack {


    @Override
    public Result<AppInfoListDTO> getApps(AppReq appReq) {
        log.error("错误信息",throwable);
        return ResultUtils.error(ResultCodeEnum.C0112.value(), ResultCodeEnum.C0112.getName());
    }

    @Override
    public Result<AppInfoDTO> getAppById(Long appId) {
        log.error("错误信息",throwable);
        return ResultUtils.error(ResultCodeEnum.C0112.value(), ResultCodeEnum.C0112.getName());
    }

    @Override
    public Result<String> appRegister(AppRegisterReq appRegisterReq) {
        log.error("错误信息",throwable);
        return ResultUtils.error(ResultCodeEnum.C0112.value(), ResultCodeEnum.C0112.getName());
    }

    @Override
    public Result<String> deleteApp(Long appId) {
        log.error("错误信息",throwable);
        return ResultUtils.error(ResultCodeEnum.C0112.value(), ResultCodeEnum.C0112.getName());
    }

}
